package router

import (
	"dks-goweb/controller"

	"github.com/gin-contrib/cors"
	"github.com/gin-gonic/gin"
)

// SetupRouter 设置路由
func SetupRouter() *gin.Engine {

	r := gin.Default()
	r.Use(cors.Default())
	// 查询wy卡状态
	r.GET("/query", controller.QueryCardStatus)
	//查询yx卡套餐
	r.GET("/package", controller.QueryCardPackage)
	//预留给3平台聚合接口
	r.GET("/info", controller.QueryCardStatusAndPackage)
	//查询流量池信息
	r.GET("/pool", controller.QueryFlowPool)
	r.GET("/zdpool", controller.QueryCardZdPool)
	r.GET("/refresh", controller.RefreshController)
	r.GET("/my", controller.MYcontroller)
	return r
}
